package com.logic.modular.game.robot;

import com.logic.modular.game.robot.hero.RobotHeroActionServiceImpl;
import com.logic.modular.game.robot.match.RobotMatchActionServiceImpl;
import com.logic.modular.game.robot.player.RobotPlayerActionServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class RobotActionServiceImpl implements SmartInitializingSingleton {
    @Resource
    private RobotPlayerActionServiceImpl robotPlayerService;
    @Resource
    private RobotHeroActionServiceImpl robotHeroService;
    @Resource
    private RobotMatchActionServiceImpl robotMatchActionServiceImpl;


    @Override
    public void afterSingletonsInstantiated() {
        robotPlayerService.tryInit();
        robotHeroService.tryInit();
        robotMatchActionServiceImpl.robotTeamsAttackHeat();
    }
}
